package com.jic.market.service;

import java.lang.Long;
import java.util.List;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.entity.ProductBargain;
import com.jic.market.request.rest.bargain.ProductBargainRestRequest;
import com.jic.market.response.rest.bargain.ProductBargainRestResponse;


/**
* 砍价活动商品关联表
* @author : 
* @email : 
* @since : 2020-09-10 06:18:31
* @version : v1.0.0
*/
public interface ProductBargainService {

    long insert(ProductBargain productBargain);

    long delete(Long id);

    long update(ProductBargain productBargain);

    ProductBargain queryByPrimaryKey(Long id);

    List<ProductBargain> query(ProductBargain productBargain);

    PageResult<ProductBargain> queryPage(ProductBargain productBargain, Page pageQuery);

    RestResult insertPromotion(ProductBargain productBargain);

    PageResult<ProductBargainRestResponse> listRestPage(ProductBargainRestRequest productBargainRestRequest, Page pageQuery);

    RestResult updateProductBargain(ProductBargain productBargain);

    RestResult deleteProductBargain(ProductBargain productBargain);
}